// JavaScript Document

var regEx = new Array();
regEx['general'] = /^.{2,}$/;
regEx['email'] = /^[a-zA-Z0-9][A-Za-z0-9_\.-]*@([\w\d_-]+\.)+\w{2,5}$/;
regEx['domain']  = /^([a-z0-9][a-z0-9-]?)*[a-z0-9]\\.([a-z]{2,4})(\\.[a-z]{2,4})?$/;
regEx['domain_sld']  = /^([a-z0-9][a-z0-9-]*)?$/;
regEx['username']  = /^[a-zA-Z0-9][a-zA-Z0-9_-]{2,15}$/;
regEx['password']  = /^[a-zA-Z0-9][a-zA-Z0-9_-]{2,9}$/;
regEx['country']  = /^[a-z]{2,15}$/i;
regEx['state'] = /^[a-z\s]{2,15}$/i;
regEx['address'] =  /^[\w\d]+/;
regEx['phone'] =  /^[0-9\+\(\)\.][0-9\s-\(\)\.]+$/;
regEx['city'] =  /^[a-zA-Z][a-zA-Z\s]{1,25}$/;
regEx['name'] =  /^[a-zA-Z\s-]{2,30}$/;
regEx['zip'] =  /^[\w\d\s\-]{1,31}$/i;
regEx['ip'] =  /^(\d{1,3}\.){3}\d{1,3}$/;
regEx['ssn'] =  /^\d{3}-\d{2}-\d{4}$/;
regEx['ein'] =  /^\d{2}-\d{7}$/;